import { Script } from "vm";

export type Data_DisplayObject = {
    scripts?: any[]
    id?: string,
    children?: Data_DisplayObject[]
}

export const uiPrefabData: Data_DisplayObject = {
    scripts: [
        { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
        { scriptName: "SpriteRenderer", imageName: "assets/font.png" }
    ],
}

export const woodPrefab: Data_DisplayObject = {
    scripts: [
        { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            imageName: `assets/0.png`
        },
        {
            scriptName: "RectCollider",
            width: 64,
            height: 64
        }
    ]
}

// export function createTileMapItemPrefab(tileId: number): Data_DisplayObject {
//     return {
//         scripts: [
//             { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
//             {
//                 scriptName: "SpriteRenderer",
//                 imageName: `assets/${tileId}.png`
//             },
//         ]
//     }
// }

export function createTileMapItemPrefab(tileId: number): Data_DisplayObject {

    if (typeof tileId == 'number') {


        switch (tileId) {
            case 0:
            case 3:
            case 5:
            case 7:
            case 8:

                {
                    return {
                        scripts: [
                            { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
                            {
                                scriptName: "RectCollider",
                                width: 64,
                                height: 64,
                                type: 2,
                            },
                            {
                                scriptName: "SpriteRenderer",
                                imageName: `assets/${tileId}.png`
                            }
                        ]
                    }
                }
                break;

            //  case 3 :{
            //         return {
            //             scripts: [
            //                 { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
            //                 {
            //                     scriptName: "RectCollider",
            //                     width: 64,
            //                     height: 64,
            //                     type: 2,
            //                 },
            //                 {
            //                     scriptName: "SpriteRenderer",
            //                     imageName: `assets/${tileId}.png`
            //                 }
            //             ]
            //         }       


            //     }
            default: {

                return {
                    scripts: [
                        { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
                        {
                            scriptName: "SpriteRenderer",
                            imageName: `assets/${tileId}.png`
                        },
                    ]
                }
            }

                break;


        }
    }
    else if (typeof tileId == 'string') {
        if (tileId == "animals/5"){
        return {
            scripts: [
                { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
                {
                    scriptName: "RectCollider",
                    type: 3,
                    width: 48,
                    height: 48
                },
                {
					scriptName:"EFsnake"
				},
                {
                    scriptName: "SpriteRenderer",
                    imageName: `assets/${tileId}.png`
                }
            ]
        }
    } else if(tileId == "animals/3"){
        return {
            scripts: [
                { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
                {
                    scriptName: "RectCollider",
                    type: 3,
                    width: 48,
                    height: 48
                },
                {
					scriptName:"EFmouse"
				},
                {
                    scriptName: "SpriteRenderer",
                    imageName: `assets/${tileId}.png`
                }
            ]
        }
    }else if(tileId == "animals/4"){
        return {
            scripts: [
                { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
                {
                    scriptName: "RectCollider",
                    type: 3,
                    width: 48,
                    height: 48
                },
                {
					scriptName:"EFrabbit"
				},
                {
                    scriptName: "SpriteRenderer",
                    imageName: `assets/${tileId}.png`
                }
            ]
        }
    }else if(tileId == "tools/3"){
        return {
            scripts: [
                { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
                {
                    scriptName: "RectCollider",
                    type: 3,
                    width: 58,
                    height: 58
                },
                {
					scriptName:"Applemeet"
				},
                {
                    scriptName: "SpriteRenderer",
                    imageName: `assets/${tileId}.png`
                }
            ]
        }
    }else if(tileId == "tools/6"){
        return {
            scripts: [
                { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
                {
                    scriptName: "RectCollider",
                    type: 3,
                    width: 58,
                    height: 58
                },
                {
					scriptName:"Bananameet"
				},
                {
                    scriptName: "SpriteRenderer",
                    imageName: `assets/${tileId}.png`
                }
            ]
        }
    }else if(tileId == "tools/4"){
        return {
            scripts: [
                { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
                {
                    scriptName: "RectCollider",
                    type: 3,
                    width: 58,
                    height: 58
                },
                {
					scriptName:"Peachmeet"
				},
                {
                    scriptName: "SpriteRenderer",
                    imageName: `assets/${tileId}.png`
                }
            ]
        }
    }else if(tileId == "tools/0"){
        return {
            scripts: [
                { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
                {
                    scriptName: "RectCollider",
                    type: 3,
                    width: 58,
                    height: 58
                },
                {
					scriptName:"Milkmeet"
				},
                {
                    scriptName: "SpriteRenderer",
                    imageName: `assets/${tileId}.png`
                }
            ]
        }
    }else if(tileId == "tools/1"){
        return {
            scripts: [
                { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
                {
                    scriptName: "RectCollider",
                    type: 3,
                    width: 58,
                    height: 58
                },
                {
					scriptName:"Attmeet"
				},
                {
                    scriptName: "SpriteRenderer",
                    imageName: `assets/${tileId}.png`
                }
            ]
        }
    }else if(tileId == "tools/2"){
        return {
            scripts: [
                { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
                {
                    scriptName: "RectCollider",
                    type: 3,
                    width: 58,
                    height: 58
                },
                {
					scriptName:"Capmeet"
				},
                {
                    scriptName: "SpriteRenderer",
                    imageName: `assets/${tileId}.png`
                }
            ]
        }
    }else if(tileId == "animals/0"){
        return {
            scripts: [
                { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
                {
                    scriptName: "RectCollider",
                    type: 3,
                    width: 58,
                    height: 58
                },
                {
					scriptName:"Lock0"
				},
                {
                    scriptName: "SpriteRenderer",
                    imageName: `assets/${tileId}.png`
                }
            ]
        }
    }else if(tileId == "animals/1"){
        return {
            scripts: [
                { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
                {
                    scriptName: "RectCollider",
                    type: 3,
                    width: 58,
                    height: 58
                },
                {
					scriptName:"Lock1"
				},
                {
                    scriptName: "SpriteRenderer",
                    imageName: `assets/${tileId}.png`
                }
            ]
        }
    }else if(tileId == "animals/2"){
        return {
            scripts: [
                { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
                {
                    scriptName: "RectCollider",
                    type: 3,
                    width: 58,
                    height: 58
                },
                {
					scriptName:"Lock2"
				},
                {
                    scriptName: "SpriteRenderer",
                    imageName: `assets/${tileId}.png`
                }
            ]
        }
    }
    
     else {
        return {
            scripts: [
                { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
                {
                    scriptName: "SpriteRenderer",
                    imageName: `assets/${tileId}.png`
                },
            ]
        }
    }
    }
}


// switch(tileId){
//     case 1:
//     {
//         return {
//             scripts: [
//                 { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
//                 {
//                     scriptName:"RectCollider",
//                     width:64,
//                     height:64,
//                     type:0

//                 },
//                 {
//                     scriptName:"SpriteRender",
//                     imageName:'assets/${tileId}.png'
//                 }
//             ]
//         }
//     }

export const itemPrefab: Data_DisplayObject = {
    scripts: [
        { scriptName: "Transform", x: 0, y: 0, rotation: 0 },
        {
            scriptName: "SpriteRenderer"
        },
    ]
}

export const fightUIPrefab: Data_DisplayObject = {
    scripts: [
        {
            scriptName: "Transform", x: 100, y: 100, rotation: 0
        },
        {
            scriptName: "FightUI"
        },
        {
            scriptName: "TextRenderer",
            fontSize: 24
        }
    ]
}


export const text: Data_DisplayObject = {

    scripts: [
        { scriptName: "Transform", x: 100, y: 100, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            // text:"1111",
            imageName: "assets/shop/shop.png"
            // fontSize:"48" 

        },
       
        {
            scriptName: "Shop"
        }

    ],
    children: [
        {

            scripts: [
                { scriptName: "Transform", x: 70, y: 540, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example1",
                    fontSize: "50"
                },

            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 70, y: 40, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example2",
                    fontSize: "50"
                },

            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 70, y: 115, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example3",
                    fontSize: "50"
                },

            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 70, y: 190, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example4",
                    fontSize: "50"
                },

            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 70, y: 265, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example5",
                    fontSize: "50"
                },

            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 70, y: 340, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example6",
                    fontSize: "50"
                },

            ]

        },
        
        {

            scripts: [
                { scriptName: "Transform", x: 70, y: 415, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "50"
                },

            ]

        }
       

    ]
}

export const a: Data_DisplayObject = {

    scripts: [
        { scriptName: "Transform", x: 100, y: 100, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            // text:"1111",
            imageName: "assets/a.png"
            // fontSize:"48" 

        }
    ]
}

export const s: Data_DisplayObject = {

    scripts: [
        { scriptName: "Transform", x: 100, y: 100, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            // text:"1111",
            imageName: "assets/s.png"
            // fontSize:"48" 

        }
    ]
}



export const dcrPrefab1: Data_DisplayObject = {
    scripts: [
        { scriptName: "Transform", x: 93, y: 250, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            imageName: `assets/communicateUI/9.png`
        },
        {
            scriptName: "UIdisappear"
        }
    ]

}

export const dcrPrefab2: Data_DisplayObject = {
    scripts: [
        { scriptName: "Transform", x: 93, y: 250, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            imageName: `assets/communicateUI/8.png`
        },
        {
            scriptName: "UIdisappear"
        }
    ]

}

export const yuxie: Data_DisplayObject = {

    scripts: [
        { scriptName: "Transform", x: 93, y: 250, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            imageName: "assets/yuxie.png"

        },
        {
            scriptName: "UIdisappear"
        }
    ]
}

export const firstUI1: Data_DisplayObject = {
    scripts: [
        { scriptName: "Transform", x: 384, y: 0, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            imageName: `assets/communicateUI/1.png`
        },
        {
            scriptName: "UIdisappear"
        }
    ]

}

export const firstUI2: Data_DisplayObject = {
    scripts: [
        { scriptName: "Transform", x: 384, y: 0, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            imageName: `assets/communicateUI/2.png`
        },
        {
            scriptName: "UIdisappear"
        }
    ]

}

export const firstUI3: Data_DisplayObject = {
    scripts: [
        { scriptName: "Transform", x: 384, y: 0, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            imageName: `assets/communicateUI/3.png`
        },
        {
            scriptName: "UIdisappear"
        }
    ]

}

export const firstUI4: Data_DisplayObject = {
    scripts: [
        { scriptName: "Transform", x: 384, y: 0, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            imageName: `assets/communicateUI/4.png`
        },
        {
            scriptName: "UIdisappear"
        }
    ]

}

export const firstUI5: Data_DisplayObject = {
    scripts: [
        { scriptName: "Transform", x: 384, y: 0, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            imageName: `assets/communicateUI/5.png`
        },
        {
            scriptName: "UIdisappear"
        }
    ]

}

export const firstUI6: Data_DisplayObject = {
    scripts: [
        { scriptName: "Transform", x: 384, y: 0, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            imageName: `assets/communicateUI/6.png`
        },
        {
            scriptName: "UIdisappear"
        }
    ]

}

export const firstUI7: Data_DisplayObject = {
    scripts: [
        { scriptName: "Transform", x: 384, y: 0, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            imageName: `assets/communicateUI/7.png`
        },
        {
            scriptName: "UIdisappear"
        }
    ]

}



export const fightingbear: Data_DisplayObject = {

    scripts: [
        { scriptName: "Transform", x: 80, y: 200, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            // text:"1111",
            imageName: "assets/battle/battle.png"
            // fontSize:"48" 

        },
        {
            scriptName:"Fightb"
        }


    ],
    children: [
        
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 167, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 265, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 215, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 30, y: 150, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 30, y: 98, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 270, y: 290, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 50, y: 240, rotation: 0 },
                {
                    scriptName: "SpriteRenderer",
                    imageName: "assets/head/bear.png"   
                    
                },


            ]

        }

    ]


}

export const fightingbear2: Data_DisplayObject = {

    scripts: [
        { scriptName: "Transform", x: 80, y: 200, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            // text:"1111",
            imageName: "assets/battle/battle.png"
            // fontSize:"48" 

        },
        {
            scriptName:"Fightb2"
        }


    ],
    children: [
        
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 167, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 265, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 215, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 30, y: 150, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 30, y: 98, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 270, y: 290, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 50, y: 240, rotation: 0 },
                {
                    scriptName: "SpriteRenderer",
                    imageName: "assets/head/bear.png"   
                    
                },


            ]

        }

    ]


}

export const fightingbear3: Data_DisplayObject = {

    scripts: [
        { scriptName: "Transform", x: 80, y: 200, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            // text:"1111",
            imageName: "assets/battle/battle.png"
            // fontSize:"48" 

        },
        {
            scriptName:"Fightb3"
        }


    ],
    children: [
        
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 167, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 265, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 215, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 30, y: 150, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 30, y: 98, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 270, y: 290, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 50, y: 240, rotation: 0 },
                {
                    scriptName: "SpriteRenderer",
                    imageName: "assets/head/bear.png"   
                    
                },


            ]

        }

    ]


}

export const fightingmouse: Data_DisplayObject = {

    scripts: [
        { scriptName: "Transform", x: 80, y: 200, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            // text:"1111",
            imageName: "assets/battle/battle.png"
            // fontSize:"48" 

        },
        {
            scriptName:"Fightm"
        }


    ],
    children: [
        
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 167, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 265, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 215, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 30, y: 150, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 30, y: 98, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 270, y: 290, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 50, y: 240, rotation: 0 },
                {
                    scriptName: "SpriteRenderer",
                    imageName: "assets/head/mouse.png"   
                    
                },


            ]

        }

    ]


}

export const fightingsnake: Data_DisplayObject = {

    scripts: [
        { scriptName: "Transform", x: 80, y: 200, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            // text:"1111",
            imageName: "assets/battle/battle.png"
            // fontSize:"48" 

        },
        {
            scriptName:"Fights"
        }


    ],
    children: [
        
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 167, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 265, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 215, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 30, y: 150, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 30, y: 98, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 270, y: 290, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 50, y: 240, rotation: 0 },
                {
                    scriptName: "SpriteRenderer",
                    imageName: "assets/head/snake.png"   
                    
                },


            ]

        }

    ]


}

export const fightingrabbit: Data_DisplayObject = {

    scripts: [
        { scriptName: "Transform", x: 80, y: 200, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            // text:"1111",
            imageName: "assets/battle/battle.png"
            // fontSize:"48" 

        },
        {
            scriptName:"Fightr"
        }


    ],
    children: [
        
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 167, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 265, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 215, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 30, y: 150, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 30, y: 98, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 270, y: 290, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 50, y: 240, rotation: 0 },
                {
                    scriptName: "SpriteRenderer",
                    imageName: "assets/head/rabbit.png"   
                    
                },


            ]

        }

    ]


}

export const fightingwildpig: Data_DisplayObject = {

    scripts: [
        { scriptName: "Transform", x: 80, y: 200, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            // text:"1111",
            imageName: "assets/battle/battle.png"
            // fontSize:"48" 

        },
        {
            scriptName:"Fightw"
        }


    ],
    children: [
        
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 167, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 265, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 215, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 30, y: 150, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 30, y: 98, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 270, y: 290, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 50, y: 240, rotation: 0 },
                {
                    scriptName: "SpriteRenderer",
                    imageName: "assets/head/wildpig.png"   
                    
                },


            ]

        }

    ]


}

export const fightingwildpig2: Data_DisplayObject = {

    scripts: [
        { scriptName: "Transform", x: 80, y: 200, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            // text:"1111",
            imageName: "assets/battle/battle.png"
            // fontSize:"48" 

        },
        {
            scriptName:"Fightw2"
        }


    ],
    children: [
        
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 167, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 265, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 215, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 30, y: 150, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 30, y: 98, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 270, y: 290, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 50, y: 240, rotation: 0 },
                {
                    scriptName: "SpriteRenderer",
                    imageName: "assets/head/wildpig.png"   
                    
                },


            ]

        }

    ]


}

export const fightingBOSS: Data_DisplayObject = {

    scripts: [
        { scriptName: "Transform", x: 80, y: 200, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            // text:"1111",
            imageName: "assets/battle/battle.png"
            // fontSize:"48" 

        },
        {
            scriptName:"FightBOSS"
        }


    ],
    children: [
        
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 167, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 265, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 550, y: 215, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 30, y: 150, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 30, y: 98, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 270, y: 290, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "example",
                    fontSize: "30"
                },


            ]

        },
        {

            scripts: [
                { scriptName: "Transform", x: 50, y: 240, rotation: 0 },
                {
                    scriptName: "SpriteRenderer",
                    imageName: "assets/head/champazee.png"   
                    
                },


            ]

        }

    ]


}

export const victory: Data_DisplayObject = {

    scripts: [
        { scriptName: "Transform", x: 200, y: 200, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            // text:"1111",
            imageName: "assets/VICTORY.png"
            // fontSize:"48" 

        }


    ],
    children: [


    ]
}

export const victoryfinal: Data_DisplayObject = {

    scripts: [
        { scriptName: "Transform", x: 100, y: 200, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            // text:"1111",
            imageName: "assets/battle/victoryUI.png"
            // fontSize:"48" 

        }


    ],
    children: [


    ]
}

export const defeatedfinal: Data_DisplayObject = {

    scripts: [
        { scriptName: "Transform", x: 100, y: 200, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            // text:"1111",
            imageName: "assets/battle/loseUI.png"
            // fontSize:"48" 

        }


    ],
    children: [


    ]
}

export const defeated: Data_DisplayObject = {

    scripts: [
        { scriptName: "Transform", x: 200, y: 100, rotation: 0 },
        {
            scriptName: "SpriteRenderer",
            // text:"1111",
            imageName: "assets/defeated.png"
            // fontSize:"48" 

        }


    ],
    children: [
        {

            scripts: [
                { scriptName: "Transform", x: -150, y: 300, rotation: 0 },
                {
                    scriptName: "TextRenderer",
                    text: "请点击F5或刷新页面重新开始游戏",
                    fontSize: "50"
                },


            ]

        }
    ]
}